package Demo;

import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * Author:  LiuTao
 * Version: 1.0
 * Date:    2023-12-05  10:19
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int count = 0;
        int[] array = new int[10];
        for(int i = 0; i < 10; i++) {
            array[i] = scanner.nextInt();
        }
        int height = scanner.nextInt();
        for(int i = 0; i < 10; i++) {
            if(height + 30 > array[i]) {
                count++;
            }
        }
        System.out.println(count);
    }
}
